package week12.config;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;


@Component
public class MqConsumer {


    /**
     * 监听
     */
    @JmsListener(destination = "${week12.destination}")
    public void getQueue(String info) {
        System.out.println("消费了:"+info);
    }


}
